package com.woniuxy.bookmall.mapper;

import com.woniuxy.bookmall.entity.TCity;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TCityMapper extends Mapper<TCity> {
    
    @Select("select * from t_city where provinceCode = #{value}")
    List<TCity> selectCityByProvince(String code);

    @Select("select * from t_city where code = #{value}")
    TCity selectCityNameByCode(String code);
}